package com.zd.lib.http.exception;

/**
 *   code ！=0  异常
 */
public class ResponseException extends Throwable {
   private   int  code=-1 ;

    public ResponseException(int code , String detailMessage) {
        super(detailMessage);
        this.code=code;
    }
    public ResponseException(String detailMessage) {
        super(detailMessage);
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
